package study.saas.order.facade.impl;


import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;
import study.saas.common.util.viewmodel.ApiResultV2;
import study.saas.common.util.viewmodel.PageModel;
import study.saas.order.entity.Employee;
import study.saas.order.entity.Porder;
import study.saas.order.service.EmployeeService;
import study.saas.order.service.PorderFacade;
import study.saas.order.service.PorderService;
import study.saas.order.service.model.PorderAddDTO;
import study.saas.order.service.model.PorderFilterDTO;
import study.saas.order.service.model.PorderModifyDTO;

import javax.annotation.Resource;

/**
 * @author wwy
 */
@Component("porderFacade")
@Service(version = "1.0.0")
public class PorderFacadeImpl implements PorderFacade {

    @Resource
    private PorderService service;


    @Override
    public ApiResultV2<Porder> findPorder(Integer porderId) {
        return service.findPorder(porderId);
    }

    @Override
    public ApiResultV2 addPorder(PorderAddDTO add) {
        return service.addPorder(add);
    }

    @Override
    public ApiResultV2 deletePorder(Integer porderId) {
        return service.deletePorder(porderId);
    }

    @Override
    public ApiResultV2 modifyPorder(PorderModifyDTO modify) {
        return service.modifyPorder(modify);
    }

    @Override
    public ApiResultV2 <PageModel<Porder>> listPorder(PorderFilterDTO filter) {
        return service.listPorder(filter);
    }

}
